using System;
using System.Collections;

namespace Com.CMS263.PO
{
	#region UserOrder

	/// <summary>
	/// UserOrder object for NHibernate mapped table 'UserOrder'.
	/// </summary>
	public class UserOrder
	{
		#region Member Variables
		
		protected int _id;
		protected int _userId;
		protected int _mystyleId;
		protected int _hunsId;
		protected int _xijiuId;
		protected int _zhubaoId;
		protected int _xitieId;
		protected int _lipinId;
		protected int _fgId;
		protected DateTime _marryDate;
		protected DateTime _addDate;
		protected string _orderNum;
		protected int _orderPrice;
		protected int _state;

		#endregion

		#region Constructors

		public UserOrder() { }

		public UserOrder( int userId, int mystyleId, int hunsId, int xijiuId, int zhubaoId, int xitieId, int lipinId, int fgId, DateTime marryDate, DateTime addDate, string orderNum, int orderPrice, int state )
		{
			this._userId = userId;
			this._mystyleId = mystyleId;
			this._hunsId = hunsId;
			this._xijiuId = xijiuId;
			this._zhubaoId = zhubaoId;
			this._xitieId = xitieId;
			this._lipinId = lipinId;
			this._fgId = fgId;
			this._marryDate = marryDate;
			this._addDate = addDate;
			this._orderNum = orderNum;
			this._orderPrice = orderPrice;
			this._state = state;
		}

		#endregion

		#region Public Properties

		public virtual int Id
		{
			get {return _id;}
			set {_id = value;}
		}

		public  virtual int UserId
		{
			get { return _userId; }
			set { _userId = value; }
		}

		public  virtual int MystyleId
		{
			get { return _mystyleId; }
			set { _mystyleId = value; }
		}

		public  virtual int HunsId
		{
			get { return _hunsId; }
			set { _hunsId = value; }
		}

		public  virtual int XijiuId
		{
			get { return _xijiuId; }
			set { _xijiuId = value; }
		}

		public  virtual int ZhubaoId
		{
			get { return _zhubaoId; }
			set { _zhubaoId = value; }
		}

		public  virtual int XitieId
		{
			get { return _xitieId; }
			set { _xitieId = value; }
		}

		public  virtual int LipinId
		{
			get { return _lipinId; }
			set { _lipinId = value; }
		}

		public  virtual int FgId
		{
			get { return _fgId; }
			set { _fgId = value; }
		}

		public  virtual DateTime MarryDate
		{
			get { return _marryDate; }
			set { _marryDate = value; }
		}

		public  virtual DateTime AddDate
		{
			get { return _addDate; }
			set { _addDate = value; }
		}

		public  virtual string OrderNum
		{
			get { return _orderNum; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for OrderNum", value, value.ToString());
				_orderNum = value;
			}
		}

		public  virtual int OrderPrice
		{
			get { return _orderPrice; }
			set { _orderPrice = value; }
		}

		public  virtual int State
		{
			get { return _state; }
			set { _state = value; }
		}

		

		#endregion
	}
	#endregion
}